<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>页面报错</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/layui/layui.js"></script>
</head>
<style>
    .layui-code-line:nth-child(<?php echo $content["line"] ?>) {
        background: rgb(255 0 0 / 20%);
    }
</style>

<body>
    <div class="layui-card">
        <div class="layui-card-header">报错：
            <?php echo $message ?>
        </div>
        <div class="layui-card-body">
            <p>
                <span>
                    <?php echo $file ?>
                </span>
                &emsp;
                <span>
                    <?php echo isset($line)  ? $line.'行':''; ?>
                </span>
            </p>
            <pre class="layui-code code-demo" lay-options="{}"><?php echo $content["msg"] ?></pre>
            <div>
                <?php echo $backtrace ?>
            </div>
        </div>
    </div>
    <script>
        layui.use(function () {
            // code
            layui.code({
                elem: '.code-demo',
                ln: false
            });
        })
    </script>
</body>

</html>